A breakpoint causes the execution of a program thread to suspend at the location where the breakpoint is set.
断点可以使程序执行的线程悬挂在断点设置的位置。
Run from the current statement until a breakpoint (or the end of the program) is reached.
您可以从当前语句开始运行直至到达一个断点(或程序尾部)。
To see what's going on in main() we can set a breakpoint at a particular line or on a function in the program code so gdb will interrupt execution when it is reached.
为了查看在 main() 中发生了什么情况,可以在程序代码中的某一特定行或函数中设置断点,这样 gdb 会在遇到断点时中断执行。